Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> p { max-height: 50px; background-color: yellow; overflow: auto; } </style> </head> <body> <p>The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px.</p> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_dim_max-height by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:52:39 GMT --> </html>
Result:
Try it Yourself - © w3schools.com